package com.training.collection.section12;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class CollectionsDemo2 {
	public static void main(String[] args) {
		List<Integer> list = new ArrayList<>();
		
		Random rn = new Random();
		
		for(int i = 1;i<10;i++) {
			list.add(rn.nextInt(100)+1);
		}
		System.out.println(list);
		Collections.reverse(list);
		System.out.println(list);
	}
}
